<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="id" lang="id">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title> 
</head>
<body>
	 <html:form action="/leaveApproveUpdate">
	 <br/>
	 <html:hidden property="id"/>
	 <html:hidden property="leaveTypeId"/>
	 	<table style="padding-left: 8px;">
	 		<tr>
	 			<td>Emp's name</td>
	 			<td> 
	 				<html:text readonly="true" name="leaveApproveUpdate" property="empFullName" style="width:150px;color: blue;background-color: #EEEEEE;"/>
	 			</td>
	 			<td>&nbsp;Leave type</td>
	 			<td> 
	 				<html:text readonly="true" name="leaveApproveUpdate" property="leaveType" style="width:150px;color: blue;background-color: #EEEEEE;"/>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>Leave from</td>
	 			<td><html:text readonly="true" property="firstLeaveStr" style="width:150px;color: blue;background-color: #EEEEEE;"/></td>
	 			<td>&nbsp;Leave to</td>
	 			<td><html:text readonly="true" property="lastLeaveStr" style="width:150px;color: blue;background-color: #EEEEEE;"/></td>
	 		</tr>   
	 		<tr>
	 			<td>Duration</td>
	 			<td>
	 				<html:text readonly="true" property="totalLeavedThisTime" style="width:150px;color: blue;background-color: #EEEEEE;"/>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td>Emp's comment</td>
	 			<td colspan="3"><html:textarea readonly="true" property="empComment" style="width:100%;height:50px;color: blue;background-color: #EEEEEE;"></html:textarea></td>
	 		</tr>
	 		<tr>
	 			<td>Comment</td>
	 			<td colspan="3"><html:textarea property="supComment" style="width:100%;height:100px;"></html:textarea></td>
	 		</tr>
	 		<tr>
				<td></td>
	 			<td colspan="3">
	 				Paid leaved:&nbsp;
	 				<bean:write name="leaveApproveUpdate" property="totalPaidLeaved"/>
	 				&nbsp;&nbsp;&nbsp;Other types:&nbsp;
	 				<bean:write name="leaveApproveUpdate" property="totalOtherLeaved"/>
	 				&nbsp;day(s)
	 			</td> 
			</tr>
	 		<tr>
	 			<td></td>
	 			<td>
	 				<html:radio property="approved" value="true">Approve</html:radio>
	 				<html:radio property="approved" value="false">Reject</html:radio>
	 			</td>
	 		</tr>
	 		<tr>
	 			<td></td>
	 			<td colspan="3"><center><a style="color: red;"><bean:write name="leaveApproveUpdate" property="message"/></a></center></td>
	 		</tr>
	 	</table>
	 	<center>
			<input type="button" value="OK" name="btnEdit" class="sbutton" id="btnEdit" onclick="postParams('act=edit&btnEdit');"></input>
			<input type="reset" value="Reset" class="sbutton"></input>
	 	</center>
	 </html:form>
</body>
</html>